// eslint.config.js
import eslint from '@eslint/js'

export default [
  {
    ignores: ['node_modules', 'dist', 'public']
  },

  eslint.configs.recommended,

  /**
   * javascript 规则
   */
  {
    rules: {
      'no-console': 'error'
    }
  },
  /**
   * 配置全局变量
   */
  {
    languageOptions: {
      globals: {
        ...globals.browser,

        /** 追加一些其他自定义全局规则 */
        wx: true
      }
    }
  }
]
